﻿using System.Data;
using System.IO;
using Microsoft.ApplicationBlocks.Data;

namespace Common.Helpers
{
    public class IoHelpers
    {
        private bool _flag;
        public bool CreateFolder(string strPath)
        {
            try
            {
                if (Directory.Exists(strPath) == false)
                {
                    Directory.CreateDirectory(strPath);
                    _flag = true;
                }
            }
            catch (IOException ioException)
            {
                //Ghi log
                _flag = false;
            }
            return _flag;
        }
    }
}
